package com.example.plat.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.plat.enity.Activity;
import com.example.plat.enity.Schedule;
import com.example.plat.enity.dto.ScheduleCardDto;
import com.example.plat.exception.ScheduleException;

import java.util.List;

public interface ScheduleService {

    //获取所有活动日程
    IPage<Activity> getMyScheduleCard(String sponsor, Integer pageNum, Integer pageSize);

    //参加活动日程
    List<Activity> getJoinScheduleCard(Long userId, Integer pageNum, Integer pageSize);

    Activity getOneCard(Long actId);

    //获取单个活动的所有日程
    List<Schedule> getScheduleDetail(Long actId);

    //创建活动日程
    void addSchedule(List<Schedule> schedule) throws ScheduleException;

    //修改活动日程
    void updateSchedule(List<Schedule> schedule) throws ScheduleException;
}
